import api from "@/utils/api";
import request from "@/utils/axios";


export function addLeave(data: any) {
    return request.post(api.leavelist.addleave, data);
}
export function getLeave() {
    return request.get(api.leavelist.getleave);
}
export function updatatype(data: any) {
    return request.patch(api.leavelist.updatatype, data);
}